/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication_mydb;

import java.util.List;
import myentity.MyUser;
import myentity.UserJpaController;

/**
 *
 * @author jfernan
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here





        UserJpaController ctr=new UserJpaController();

        MyUser user=new MyUser("hello","jmf");
     MyUser user1=new MyUser("hello1","jmf1");

        ctr.create(user);

        ctr.create(user1);
        
        List l=ctr.findUserEntities();

        for( Object c: l )
            System.out.println("one "+c);


    }

}
